﻿namespace HRM.CORE
{
    using DevExpress.Data;
    using DevExpress.Utils;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Views.BandedGrid;
    using DevExpress.XtraGrid.Views.Grid;
    using DevExpress.XtraLayout;
    using DevExpress.XtraLayout.Utils;
    using APP.HELPER;
    using HRM.CORE;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms; using Common;
    using Common;
    using Extra.ERP;
    using DevExpress.XtraGrid.Views.Base;

    public class xuc02aTBH : Common.xucBase
    {
        private BandedGridColumn colBirthday;
        private BandedGridColumn colBirthdayDay;
        private BandedGridColumn colBirthdayMonth;
        private BandedGridColumn colBirthdayYear;
        private BandedGridColumn colDescription;
        private BandedGridColumn colEmployeeCode;
        private BandedGridColumn colEmployeeName;
        private BandedGridColumn colFromDate;
        private BandedGridColumn colHealthInsuranceCode;
        private BandedGridColumn colHospital;
        private BandedGridColumn colIDCard;
        private BandedGridColumn colMainAddress;
        private BandedGridColumn colNewAllowance1;
        private BandedGridColumn colNewAllowance2;
        private BandedGridColumn colNewAllowance3;
        private BandedGridColumn colNewAllowance4;
        private BandedGridColumn colNewSalary;
        private BandedGridColumn colProvince;
        private BandedGridColumn colSex;
        private BandedGridColumn colSocialInsuranceCode;
        private IContainer components;
        private BandedGridView gbList;
        private GridControl gcList;
        private GridBand gridBand1;
        private GridBand gridBand2;
        private GridBand gridBand3;
        private GridBand gridBand4;
        private LayoutControl layoutControl1;
        private LayoutControlGroup layoutControlGroup1;
        private LayoutControlGroup layoutControlGroup2;
        private LayoutControlItem layoutControlItem1;
        private Guid m_InsuranceTableListID;
        private RepositoryItemCalcEdit repCalculator;
        private RepositoryItemDateEdit repMonth;
        private RepositoryItemPictureEdit rptPhoto;

        public event ItemSelectedEventHander ItemSelected;

        public xuc02aTBH()
        {
            this.components = null;
            this.m_InsuranceTableListID = Guid.Empty;
            this.InitializeComponent();
            this.Init();
        }

        public xuc02aTBH(Guid InsuranceTableListID)
        {
            this.components = null;
            this.m_InsuranceTableListID = Guid.Empty;
            this.InitializeComponent();
            this.m_InsuranceTableListID = InsuranceTableListID;
            this.Init();
        }

        public void Delete()
        {
            bool flag = false;
            int[] selectedRows = this.gbList.GetSelectedRows();
            if (XtraMessageBox.Show("Bạn c\x00f3 muốn x\x00f3a kh\x00f4ng?", "Th\x00f4ng b\x00e1o", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.No)
            {
                string str;
                object rowCellValue;
                base.SetWaitDialogCaption("Đang x\x00f3a...");
                HRM_INSURANCE hrm_insurance = new HRM_INSURANCE();
                for (int i = selectedRows.Length; i > 0; i--)
                {
                    flag = true;
                    rowCellValue = this.gbList.GetRowCellValue(selectedRows[i - 1], "InsuranceID");
                    if (rowCellValue != null)
                    {
                        SYS_LOG.Insert("Danh S\x00e1ch Lao Động Tăng", "Xo\x00e1", rowCellValue.ToString());
                        str = hrm_insurance.Delete(new Guid(rowCellValue.ToString()));
                        if (str == "OK")
                        {
                            this.gbList.DeleteRow(selectedRows[i - 1]);
                        }
                        else if (str != "OK")
                        {
                            MessageBox.Show("Th\x00f4ng tin kh\x00f4ng được x\x00f3a\r\n" + str, "Th\x00f4ng b\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                        }
                    }
                }
                this.DoHide();
                if (!flag && (hrm_insurance.GetList().Rows.Count != 0))
                {
                    rowCellValue = this.gbList.GetFocusedRowCellValue("InsuranceID");
                    if (rowCellValue != null)
                    {
                        SYS_LOG.Insert("Danh S\x00e1ch Lao Động Tăng", "Xo\x00e1", rowCellValue.ToString());
                        base.SetWaitDialogCaption("Đang x\x00f3a...");
                        str = hrm_insurance.Delete(new Guid(rowCellValue.ToString()));
                        if (str == "OK")
                        {
                            this.gbList.DeleteRow(this.gbList.FocusedRowHandle);
                        }
                        else if (str != "OK")
                        {
                            MessageBox.Show("Th\x00f4ng tin kh\x00f4ng được x\x00f3a\r\n" + str, "Th\x00f4ng b\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                        }
                        this.DoHide();
                    }
                }
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        protected override bool ExportPermision()
        {
            base._exportView = this.gbList;
            SYS_LOG.Insert("Danh S\x00e1ch Lao Động Tăng", "Xuất");
            return base.ExportPermision();
        }

        private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
        {
            if (e.RowHandle == -2147483648)
            {
                e.Handled = true;
                e.Painter.DrawObject(e.Info);
                Rectangle bounds = e.Bounds;
                e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(0x3f, 0xa5, 0xa5, 0)), bounds);
                bounds.Height--;
                bounds.Width--;
                e.Graphics.DrawRectangle(Pens.Blue, bounds);
            }
            int rowHandle = e.RowHandle;
            if (rowHandle >= 0)
            {
                rowHandle++;
                e.Info.DisplayText = rowHandle.ToString();
            }
        }

        private void Init()
        {
            this.gcList.DataSource = new HRM_INSURANCE().GetListIncrease(this.m_InsuranceTableListID);
        }

        private void InitializeComponent()
        {
            this.gcList = new GridControl();
            this.gbList = new BandedGridView();
            this.gridBand1 = new GridBand();
            this.colEmployeeCode = new BandedGridColumn();
            this.colEmployeeName = new BandedGridColumn();
            this.colSocialInsuranceCode = new BandedGridColumn();
            this.colHealthInsuranceCode = new BandedGridColumn();
            this.colBirthday = new BandedGridColumn();
            this.colSex = new BandedGridColumn();
            this.colIDCard = new BandedGridColumn();
            this.colMainAddress = new BandedGridColumn();
            this.gridBand2 = new GridBand();
            this.colProvince = new BandedGridColumn();
            this.colHospital = new BandedGridColumn();
            this.gridBand3 = new GridBand();
            this.colNewAllowance1 = new BandedGridColumn();
            this.repCalculator = new RepositoryItemCalcEdit();
            this.colNewAllowance2 = new BandedGridColumn();
            this.colNewAllowance3 = new BandedGridColumn();
            this.colNewAllowance4 = new BandedGridColumn();
            this.gridBand4 = new GridBand();
            this.colNewSalary = new BandedGridColumn();
            this.colFromDate = new BandedGridColumn();
            this.repMonth = new RepositoryItemDateEdit();
            this.colDescription = new BandedGridColumn();
            this.rptPhoto = new RepositoryItemPictureEdit();
            this.layoutControl1 = new LayoutControl();
            this.layoutControlGroup1 = new LayoutControlGroup();
            this.layoutControlGroup2 = new LayoutControlGroup();
            this.layoutControlItem1 = new LayoutControlItem();
            this.colBirthdayYear = new BandedGridColumn();
            this.colBirthdayMonth = new BandedGridColumn();
            this.colBirthdayDay = new BandedGridColumn();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            this.repCalculator.BeginInit();
            this.repMonth.BeginInit();
            this.repMonth.VistaTimeProperties.BeginInit();
            this.rptPhoto.BeginInit();
            this.layoutControl1.BeginInit();
            this.layoutControl1.SuspendLayout();
            this.layoutControlGroup1.BeginInit();
            this.layoutControlGroup2.BeginInit();
            this.layoutControlItem1.BeginInit();
            base.SuspendLayout();
            this.gcList.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gcList.EmbeddedNavigator.TextStringFormat = "{0}/{1}";
            this.gcList.Location = new Point(5, 0x19);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.rptPhoto, this.repCalculator, this.repMonth });
            this.gcList.Size = new Size(0x397, 0x253);
            this.gcList.TabIndex = 5;
            this.gcList.UseEmbeddedNavigator = true;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gbList.Appearance.GroupRow.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gbList.Appearance.GroupRow.Options.UseFont = true;
            this.gbList.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.HeaderPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.HeaderPanel.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.Bands.AddRange(new GridBand[] { this.gridBand1, this.gridBand2, this.gridBand3, this.gridBand4 });
            this.gbList.BorderStyle = BorderStyles.NoBorder;
            this.gbList.ColumnPanelRowHeight = 0x24;
            this.gbList.Columns.AddRange(new BandedGridColumn[] { 
                this.colEmployeeCode, this.colEmployeeName, this.colSocialInsuranceCode, this.colHealthInsuranceCode, this.colBirthdayDay, this.colBirthdayMonth, this.colBirthdayYear, this.colBirthday, this.colSex, this.colIDCard, this.colMainAddress, this.colProvince, this.colHospital, this.colNewSalary, this.colNewAllowance1, this.colNewAllowance2, 
                this.colNewAllowance3, this.colNewAllowance4, this.colFromDate, this.colDescription
             });
            this.gbList.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.gbList.GridControl = this.gcList;
            this.gbList.GroupPanelText = "K\x00e9o v\x00e0 Thả cột v\x00e0o đ\x00e2y để nh\x00f3m dữ liệu";
            this.gbList.IndicatorWidth = 40;
            this.gbList.Name = "gbList";
            this.gbList.OptionsBehavior.AllowIncrementalSearch = true;
            this.gbList.OptionsBehavior.AutoExpandAllGroups = true;
            this.gbList.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
            this.gbList.OptionsBehavior.FocusLeaveOnTab = true;
            this.gbList.OptionsLayout.StoreAllOptions = true;
            this.gbList.OptionsLayout.StoreAppearance = true;
            this.gbList.OptionsMenu.EnableColumnMenu = false;
            this.gbList.OptionsMenu.EnableGroupPanelMenu = false;
            this.gbList.OptionsNavigation.EnterMoveNextColumn = true;
            this.gbList.OptionsSelection.InvertSelection = true;
            this.gbList.OptionsSelection.MultiSelect = true;
            this.gbList.OptionsView.ColumnAutoWidth = false;
            this.gbList.OptionsView.EnableAppearanceEvenRow = true;
            this.gbList.OptionsView.ShowAutoFilterRow = true;
            this.gbList.OptionsView.ShowGroupPanel = false;
            this.gbList.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(this.gbList_CustomDrawRowIndicator);
            this.gridBand1.AppearanceHeader.Options.UseTextOptions = true;
            this.gridBand1.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gridBand1.Caption = "Th\x00f4ng tin nh\x00e2n vi\x00ean";
            this.gridBand1.Columns.Add(this.colEmployeeCode);
            this.gridBand1.Columns.Add(this.colEmployeeName);
            this.gridBand1.Columns.Add(this.colSocialInsuranceCode);
            this.gridBand1.Columns.Add(this.colHealthInsuranceCode);
            this.gridBand1.Columns.Add(this.colBirthday);
            this.gridBand1.Columns.Add(this.colSex);
            this.gridBand1.Columns.Add(this.colIDCard);
            this.gridBand1.Columns.Add(this.colMainAddress);
            this.gridBand1.MinWidth = 20;
            this.gridBand1.Name = "gridBand1";
            this.gridBand1.Width = 0x2db;
            this.colEmployeeCode.Caption = "M\x00e3 nh\x00e2n vi\x00ean";
            this.colEmployeeCode.FieldName = "EmployeeCode";
            this.colEmployeeCode.Name = "colEmployeeCode";
            this.colEmployeeCode.OptionsColumn.AllowEdit = false;
            this.colEmployeeCode.OptionsColumn.ReadOnly = true;
            this.colEmployeeCode.Visible = true;
            this.colEmployeeCode.Width = 0x4f;
            this.colEmployeeName.Caption = "Họ v\x00e0 t\x00ean";
            this.colEmployeeName.FieldName = "EmployeeName";
            this.colEmployeeName.Name = "colEmployeeName";
            this.colEmployeeName.OptionsColumn.AllowEdit = false;
            this.colEmployeeName.OptionsColumn.ReadOnly = true;
            this.colEmployeeName.Visible = true;
            this.colEmployeeName.Width = 0x7b;
            this.colSocialInsuranceCode.Caption = "Số sổ BHXH";
            this.colSocialInsuranceCode.FieldName = "SocialInsuranceCode";
            this.colSocialInsuranceCode.Name = "colSocialInsuranceCode";
            this.colSocialInsuranceCode.OptionsColumn.AllowEdit = false;
            this.colSocialInsuranceCode.OptionsColumn.ReadOnly = true;
            this.colSocialInsuranceCode.Visible = true;
            this.colSocialInsuranceCode.Width = 0x4c;
            this.colHealthInsuranceCode.Caption = "Số thẻ BHYT";
            this.colHealthInsuranceCode.FieldName = "HealthInsuranceCode";
            this.colHealthInsuranceCode.Name = "colHealthInsuranceCode";
            this.colHealthInsuranceCode.OptionsColumn.AllowEdit = false;
            this.colHealthInsuranceCode.OptionsColumn.ReadOnly = true;
            this.colHealthInsuranceCode.Visible = true;
            this.colHealthInsuranceCode.Width = 0x42;
            this.colBirthday.Caption = "Ng\x00e0y, th\x00e1ng, năm sinh";
            this.colBirthday.FieldName = "Birthday";
            this.colBirthday.Name = "colBirthday";
            this.colBirthday.OptionsColumn.AllowEdit = false;
            this.colBirthday.OptionsColumn.ReadOnly = true;
            this.colBirthday.UnboundExpression = "Iif([BirthdayDay] == 0  And [BirthdayMonth] == 0,[BirthdayYear] ,Iif([BirthdayDay] == 0,[BirthdayMonth]+'/'+[BirthdayYear] ,[BirthdayDay]+'/'+[BirthdayMonth]+'/'+[BirthdayYear] ) )";
            this.colBirthday.UnboundType = UnboundColumnType.String;
            this.colBirthday.Visible = true;
            this.colBirthday.Width = 0x53;
            this.colSex.Caption = "Nam (x)";
            this.colSex.FieldName = "Sex";
            this.colSex.Name = "colSex";
            this.colSex.OptionsColumn.AllowEdit = false;
            this.colSex.OptionsColumn.ReadOnly = true;
            this.colSex.Visible = true;
            this.colSex.Width = 0x53;
            this.colIDCard.Caption = "Số chứng minh thư";
            this.colIDCard.FieldName = "IDCard";
            this.colIDCard.Name = "colIDCard";
            this.colIDCard.OptionsColumn.AllowEdit = false;
            this.colIDCard.OptionsColumn.ReadOnly = true;
            this.colIDCard.Visible = true;
            this.colMainAddress.Caption = "Địa chỉ";
            this.colMainAddress.FieldName = "MainAddress";
            this.colMainAddress.Name = "colMainAddress";
            this.colMainAddress.OptionsColumn.AllowEdit = false;
            this.colMainAddress.OptionsColumn.ReadOnly = true;
            this.colMainAddress.Visible = true;
            this.colMainAddress.Width = 0x92;
            this.gridBand2.AppearanceHeader.Options.UseTextOptions = true;
            this.gridBand2.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gridBand2.Caption = "Nơi đăng k\x00fd KCB ban đầu";
            this.gridBand2.Columns.Add(this.colProvince);
            this.gridBand2.Columns.Add(this.colHospital);
            this.gridBand2.MinWidth = 20;
            this.gridBand2.Name = "gridBand2";
            this.gridBand2.Width = 0xa7;
            this.colProvince.Caption = "Tỉnh";
            this.colProvince.FieldName = "Province";
            this.colProvince.Name = "colProvince";
            this.colProvince.OptionsColumn.AllowEdit = false;
            this.colProvince.OptionsColumn.ReadOnly = true;
            this.colProvince.Visible = true;
            this.colHospital.Caption = "Bệnh viện";
            this.colHospital.FieldName = "Hospital";
            this.colHospital.Name = "colHospital";
            this.colHospital.OptionsColumn.AllowEdit = false;
            this.colHospital.OptionsColumn.ReadOnly = true;
            this.colHospital.Visible = true;
            this.colHospital.Width = 0x5c;
            this.gridBand3.AppearanceHeader.Options.UseTextOptions = true;
            this.gridBand3.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gridBand3.Caption = "Phụ cấp";
            this.gridBand3.Columns.Add(this.colNewAllowance1);
            this.gridBand3.Columns.Add(this.colNewAllowance2);
            this.gridBand3.Columns.Add(this.colNewAllowance3);
            this.gridBand3.Columns.Add(this.colNewAllowance4);
            this.gridBand3.MinWidth = 20;
            this.gridBand3.Name = "gridBand3";
            this.gridBand3.Width = 300;
            this.colNewAllowance1.Caption = "Chức vụ";
            this.colNewAllowance1.ColumnEdit = this.repCalculator;
            this.colNewAllowance1.FieldName = "NewAllowance1";
            this.colNewAllowance1.Name = "colNewAllowance1";
            this.colNewAllowance1.OptionsColumn.AllowEdit = false;
            this.colNewAllowance1.OptionsColumn.ReadOnly = true;
            this.colNewAllowance1.Visible = true;
            this.repCalculator.AutoHeight = false;
            this.repCalculator.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repCalculator.Mask.UseMaskAsDisplayFormat = true;
            this.repCalculator.Name = "repCalculator";
            this.colNewAllowance2.Caption = "Th\x00e2m ni\x00ean VK";
            this.colNewAllowance2.ColumnEdit = this.repCalculator;
            this.colNewAllowance2.FieldName = "NewAllowance2";
            this.colNewAllowance2.Name = "colNewAllowance2";
            this.colNewAllowance2.OptionsColumn.AllowEdit = false;
            this.colNewAllowance2.OptionsColumn.ReadOnly = true;
            this.colNewAllowance2.Visible = true;
            this.colNewAllowance3.Caption = "Th\x00e2m ni\x00ean nghề";
            this.colNewAllowance3.ColumnEdit = this.repCalculator;
            this.colNewAllowance3.FieldName = "NewAllowance3";
            this.colNewAllowance3.Name = "colNewAllowance3";
            this.colNewAllowance3.OptionsColumn.AllowEdit = false;
            this.colNewAllowance3.OptionsColumn.ReadOnly = true;
            this.colNewAllowance3.Visible = true;
            this.colNewAllowance4.Caption = "Khu vực";
            this.colNewAllowance4.ColumnEdit = this.repCalculator;
            this.colNewAllowance4.FieldName = "NewAllowance4";
            this.colNewAllowance4.Name = "colNewAllowance4";
            this.colNewAllowance4.OptionsColumn.AllowEdit = false;
            this.colNewAllowance4.OptionsColumn.ReadOnly = true;
            this.colNewAllowance4.Visible = true;
            this.gridBand4.AppearanceHeader.Options.UseTextOptions = true;
            this.gridBand4.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gridBand4.Columns.Add(this.colNewSalary);
            this.gridBand4.Columns.Add(this.colFromDate);
            this.gridBand4.Columns.Add(this.colDescription);
            this.gridBand4.MinWidth = 20;
            this.gridBand4.Name = "gridBand4";
            this.gridBand4.Width = 0xe1;
            this.colNewSalary.Caption = "Tiền lương, tiền c\x00f4ng";
            this.colNewSalary.ColumnEdit = this.repCalculator;
            this.colNewSalary.FieldName = "NewSalary";
            this.colNewSalary.Name = "colNewSalary";
            this.colNewSalary.OptionsColumn.AllowEdit = false;
            this.colNewSalary.OptionsColumn.ReadOnly = true;
            this.colNewSalary.Visible = true;
            this.colFromDate.Caption = "Đ\x00f3ng từ th\x00e1ng, năm";
            this.colFromDate.ColumnEdit = this.repMonth;
            this.colFromDate.FieldName = "FromDate";
            this.colFromDate.Name = "colFromDate";
            this.colFromDate.OptionsColumn.AllowEdit = false;
            this.colFromDate.OptionsColumn.ReadOnly = true;
            this.colFromDate.Visible = true;
            this.repMonth.AutoHeight = false;
            this.repMonth.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repMonth.Mask.EditMask = "MM/yyyy";
            this.repMonth.Mask.UseMaskAsDisplayFormat = true;
            this.repMonth.Name = "repMonth";
            this.repMonth.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.colDescription.Caption = "Ghi ch\x00fa";
            this.colDescription.FieldName = "Description";
            this.colDescription.Name = "colDescription";
            this.colDescription.OptionsColumn.AllowEdit = false;
            this.colDescription.OptionsColumn.ReadOnly = true;
            this.colDescription.Visible = true;
            this.rptPhoto.CustomHeight = 0x30;
            this.rptPhoto.Name = "rptPhoto";
            this.rptPhoto.NullText = "[Chưa chọn h\x00ecnh]";
            this.rptPhoto.SizeMode = PictureSizeMode.Zoom;
            this.layoutControl1.Controls.Add(this.gcList);
            this.layoutControl1.Dock = DockStyle.Fill;
            this.layoutControl1.Location = new Point(0, 0);
            this.layoutControl1.Name = "layoutControl1";
            this.layoutControl1.Root = this.layoutControlGroup1;
            this.layoutControl1.Size = new Size(0x3a1, 0x271);
            this.layoutControl1.TabIndex = 6;
            this.layoutControl1.Text = "layoutControl1";
            this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
            this.layoutControlGroup1.EnableIndentsWithoutBorders = DefaultBoolean.True;
            this.layoutControlGroup1.GroupBordersVisible = false;
            this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.layoutControlGroup2 });
            this.layoutControlGroup1.Location = new Point(0, 0);
            this.layoutControlGroup1.Name = "layoutControlGroup1";
            this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Size = new Size(0x3a1, 0x271);
            this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Text = "layoutControlGroup1";
            this.layoutControlGroup1.TextVisible = false;
            this.layoutControlGroup2.CustomizationFormText = "MẪU SỐ 02A-TBH: DANH S\x00c1CH LAO ĐỘNG THAM GIA BHXH, BHYT BẮT BUỘC";
            this.layoutControlGroup2.ExpandButtonVisible = true;
            this.layoutControlGroup2.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem1 });
            this.layoutControlGroup2.Location = new Point(0, 0);
            this.layoutControlGroup2.Name = "layoutControlGroup2";
            this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup2.Size = new Size(0x3a1, 0x271);
            this.layoutControlGroup2.Text = "MẪU SỐ 02A-TBH: DANH S\x00c1CH LAO ĐỘNG THAM GIA BHXH, BHYT BẮT BUỘC";
            this.layoutControlItem1.Control = this.gcList;
            this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
            this.layoutControlItem1.Location = new Point(0, 0);
            this.layoutControlItem1.Name = "layoutControlItem1";
            this.layoutControlItem1.Size = new Size(0x39b, 0x257);
            this.layoutControlItem1.Text = "layoutControlItem1";
            this.layoutControlItem1.TextSize = new Size(0, 0);
            this.layoutControlItem1.TextToControlDistance = 0;
            this.layoutControlItem1.TextVisible = false;
            this.colBirthdayYear.Caption = "Năm sinh";
            this.colBirthdayYear.FieldName = "BirthdayYear";
            this.colBirthdayYear.Name = "colBirthdayYear";
            this.colBirthdayMonth.Caption = "Th\x00e1ng sinh";
            this.colBirthdayMonth.FieldName = "BirthdayMonth";
            this.colBirthdayMonth.Name = "colBirthdayMonth";
            this.colBirthdayDay.Caption = "Ng\x00e0y sinh";
            this.colBirthdayDay.FieldName = "BirthdayDay";
            this.colBirthdayDay.Name = "colBirthdayDay";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.layoutControl1);
            base.Name = "xuc02aTBH";
            base.Size = new Size(0x3a1, 0x271);
            this.gcList.EndInit();
            this.gbList.EndInit();
            this.repCalculator.EndInit();
            this.repMonth.VistaTimeProperties.EndInit();
            this.repMonth.EndInit();
            this.rptPhoto.EndInit();
            this.layoutControl1.EndInit();
            this.layoutControl1.ResumeLayout(false);
            this.layoutControlGroup1.EndInit();
            this.layoutControlGroup2.EndInit();
            this.layoutControlItem1.EndInit();
            base.ResumeLayout(false);
        }

        public void LoadData(Guid InsuranceTableListID)
        {
            this.m_InsuranceTableListID = InsuranceTableListID;
            this.Init();
        }

        private void RaiseItemSelectedEventHander(HRM_INSURANCE item)
        {
            if (this.ItemSelected != null)
            {
                this.ItemSelected(this, item);
            }
        }

        public delegate void ItemSelectedEventHander(object sender, HRM_INSURANCE item);
    }
}

